import CreditManagementComp from "containers/credit-setting/credit-management/credit-management"
import CreditModelComp from "containers/credit-setting/credit-model/credit-model"
import CreditModelDetailComp from "containers/credit-setting/credit-model/credit-model-detail/credit-model-detail"
import CreditModelRulesDetailComp from "containers/credit-setting/credit-model/credit-model-detail/credit-model-rules-detail"

//信用设置
const creditSetting = {
  key:'credit-setting',
  icon: 'line-chart',
  admin: true,
  subMenu: [
    //信用模型
    {
      key:'credit-model',
      url:'/main/credit-setting/credit-model',
      tenant: true,
      components: CreditModelComp,
      parent: 'credit-setting',
      children: {
        creditModelDetail: {
          key:'credit-model-detail',
          url:'/main/credit-setting/credit-model/credit-model-detail/:id',
          components: CreditModelDetailComp,
          parent: 'credit-model'
        },
        creditModelRulesDetail: {
          key:'credit-model-rules-detail',
          url:'/main/credit-setting/credit-model/credit-model-detail/:id/credit-model-rules-detail/:setId',
          components: CreditModelRulesDetailComp,
          parent: 'credit-model'
        }
      }
    }
  ]
};

export default creditSetting
